package scene.lighting;
import util.Color3f;
import util.Vector3f;

/**
 * Base class for a lightsource
 * @author glenn
 *
 */
public class Light {
	
	protected Vector3f position;
	protected Color3f color;
	protected String name;
	protected float intensity;
	
	/**
	 * Constructs a pointlight
	 * @param position The position of the light
	 * @param intensity The intensity of the light
	 * @param color The color of the light
	 * @param name The name of the light
	 */
	public Light(Vector3f position, float intensity, Color3f color, String name){
		this.position = position;
		this.color = color;
		this.name = name;
		this.intensity = intensity;
	}
	
	/**
	 * @return The position of the light
	 */
	public Vector3f getPosition(){
		return position;
	}
	
	/**
	 * @return The color of the light
	 */
	public Color3f getColor(){
		return color;
	}
	
	/**	
	 * @return The name of the light
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * @return The intensity of the light
	 */
	public float getIntensity(){
		return intensity;
	}

}
